<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/3/13
 * Time: 9:39
 */

namespace app\admin\controller;


class Loock
{
    public function index($url)
    {
        $vi['data'] = $url;
        $type = explode('.',$vi['data']);
        $vi['type'] =  lcfirst($type[count($type)-1]) == 'pdf'?0:1;
        return view('',$vi);
    }

    public function pdf($url)
    {
        $vi['data'] = $url;
        return view('',$vi);
    }
}